/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * V1Cons.java
 *
 * Created on 14-may-2012, 12:38:33
 */
package practtica4;

/**
 *
 * @author usuario_local
 */
public class V1Cons extends javax.swing.JFrame {

    /** Creates new form V1Cons */
    public V1Cons() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        botonBusquedaAvanzada = new javax.swing.JButton();
        botonBusquedaSimple = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        botonBusquedaAvanzada.setText("Busqueda avanzada");
        botonBusquedaAvanzada.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonBusquedaAvanzadaMouseClicked(evt);
            }
        });

        botonBusquedaSimple.setText("Busqueda simple");
        botonBusquedaSimple.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonBusquedaSimpleMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(152, 152, 152)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(botonBusquedaSimple)
                    .addComponent(botonBusquedaAvanzada))
                .addContainerGap(119, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(65, 65, 65)
                .addComponent(botonBusquedaSimple)
                .addGap(65, 65, 65)
                .addComponent(botonBusquedaAvanzada)
                .addContainerGap(124, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void botonBusquedaSimpleMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonBusquedaSimpleMouseClicked
        // TODO add your handling code here:
        V1ConsBusqSimple v1simple= new V1ConsBusqSimple();
        v1simple.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_botonBusquedaSimpleMouseClicked

    private void botonBusquedaAvanzadaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonBusquedaAvanzadaMouseClicked
        // TODO add your handling code here:
        V1ConsBusqAvan v1avan= new V1ConsBusqAvan();
        v1avan.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_botonBusquedaAvanzadaMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonBusquedaAvanzada;
    private javax.swing.JButton botonBusquedaSimple;
    // End of variables declaration//GEN-END:variables
}
